#ifndef __PATHSTACK__
#define __PATHSTACK__

#include "head.h"

typedef struct commandStack_s{
    int num[100];
    int top;
    int bottom;
    int size;
    char *username;
}commandStack_t;

int init_stack(commandStack_t *stack);
int push_stack(commandStack_t *stack, int id);
int pop_stack(commandStack_t *stack);
int clear_stack(commandStack_t *stack);
int print_stack(commandStack_t *stack);
int copy_stack(commandStack_t *destStack, commandStack_t *srcStack);

int reverse_stack(commandStack_t *destStack, commandStack_t *srcStack);
#endif
